home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000389_interran@uluru.Stanford.EDU_Mon Mar 14 07:09:46 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  3KB

  1. Received: from uluru.Stanford.EDU by cs.umb.edu with SMTP id AA16436
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Mon, 14 Mar 1994 18:06:59 -0500
  3. Received: by uluru.Stanford.EDU (4.1/inc-1.0)
  4.     id AA24033; Mon, 14 Mar 94 15:09:46 PST
  5. Date: Mon, 14 Mar 94 15:09:46 PST
  6. From: interran@uluru.Stanford.EDU (John Interrante)
  7. Message-Id: <9403142309.AA24033@uluru.Stanford.EDU>
  8. To: tex-k@cs.umb.edu
  9. Subject: web2c-6.1: patches to use xdvik-1.7's kpathsea library
  10.  
  11. The patches that someone posted earlier to let web2c-6.1 use the more
  12. up to date kpathsea library from dvipsk-5.528a and xdvik-1.7 were not
  13. quite sufficient.  One of the #includes in web2c/lib/ourpaths.c had to
  14. be renamed as well.  Here are the correct patches.
  15.  
  16. Apply this patch to modify the new kpathsea library from dvipsk-5.528a
  17. or xdvik-1.7 so it can be used with web2c-6.1.
  18.  
  19. *** kpathsea/fontmap.h.save    Sun Feb 27 13:47:56 1994
  20. --- kpathsea/fontmap.h    Mon Mar 14 00:02:13 1994
  21. ***************
  22. *** 23,28 ****
  23. --- 23,30 ----
  24.   #include <kpathsea/hash.h>
  25.   #include <kpathsea/types.h>
  26.   
  27. + #define MAP_NIL { 0, 0 }
  28. + #define MAP_NILP(map) (!(map).buckets)
  29.   
  30.   /* Parse the file `texfonts.map' in each of the directories in PATH and
  31.      return the resulting structure.  Entries in earlier files override
  32.  
  33. Apply this patch to make web2c-6.1 compile with the new kpathsea
  34. library (which should be faster than the old library since it reads a
  35. ls-R file if one's present).
  36.  
  37. *** web2c/lib/ourpaths.c.save    Sun Dec  5 12:48:44 1993
  38. --- web2c/lib/ourpaths.c    Mon Mar 14 10:45:47 1994
  39. ***************
  40. *** 2,10 ****
  41.   
  42.   #include "config.h"
  43.   
  44. - #include <kpathsea/filefmt.h>
  45.   #include <kpathsea/fontmap.h>
  46.   #include <kpathsea/pathsearch.h>
  47.   
  48.   
  49.   /* `path_dirs' is initialized in `setpaths', to a null-terminated array
  50. --- 2,10 ----
  51.   
  52.   #include "config.h"
  53.   
  54.   #include <kpathsea/fontmap.h>
  55.   #include <kpathsea/pathsearch.h>
  56. + #include <kpathsea/tex-file.h>
  57.   
  58.   
  59.   /* `path_dirs' is initialized in `setpaths', to a null-terminated array
  60. ***************
  61. *** 88,97 ****
  62.                    || path_index == PKFILEPATH))
  63.       {
  64.         string *mapped_names;
  65. !       static map_type fontmap = NULL;
  66.         
  67.         /* Fault in the mapping if necessary.  */
  68. !       if (!fontmap)
  69.           fontmap = map_create (path);
  70.         
  71.         /* Now look for our filename in the mapping.  */
  72. --- 88,97 ----
  73.                    || path_index == PKFILEPATH))
  74.       {
  75.         string *mapped_names;
  76. !       static hash_table_type fontmap = MAP_NIL;
  77.         
  78.         /* Fault in the mapping if necessary.  */
  79. !       if (MAP_NILP (fontmap))
  80.           fontmap = map_create (path);
  81.         
  82.         /* Now look for our filename in the mapping.  */
  83.  
  84. Applying this final patch should do no harm and may prevent a possible
  85. compilation error.
  86.  
  87. *** web2c/mf/Makefile.in.save    Thu Feb  3 04:48:35 1994
  88. --- web2c/mf/Makefile.in    Mon Mar 14 13:30:15 1994
  89. ***************
  90. *** 71,78 ****
  91.   
  92.   # What to pass to submakes.
  93.   makeargs=SHELL='$(SHELL)' CC='$(CC)' CFLAGS='$(CFLAGS)' \
  94. ! LDFLAGS='$(LDFLAGS)' LIBS='$(libs)' RANLIB='$(RANLIB)' LN='$(LN)' \
  95. ! srcdir=$(srcdir)  
  96.   
  97.   
  98.   .SUFFIXES:
  99. --- 71,77 ----
  100.   
  101.   # What to pass to submakes.
  102.   makeargs=SHELL='$(SHELL)' CC='$(CC)' CFLAGS='$(CFLAGS)' \
  103. ! LDFLAGS='$(LDFLAGS)' LIBS='$(libs)' RANLIB='$(RANLIB)' LN='$(LN)'
  104.   
  105.   
  106.   .SUFFIXES: